package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.PermanenciaDto;
import org.springframework.jdbc.core.RowMapper;

public class PermanenciaMapper implements RowMapper<PermanenciaDto>{

	public PermanenciaDto mapRow(ResultSet rs, int rowNum) throws SQLException {
		PermanenciaDto dto = new PermanenciaDto();
		dto.setAnio(rs.getInt(1));
		dto.setMes(rs.getInt(2));
		dto.setPeriodo(rs.getString(3));
		dto.setAsistencia(rs.getInt(4));
		dto.setNumeroTres(rs.getInt(5));
		dto.setPorcentajeTres(rs.getBigDecimal(6));
		dto.setNumeroSeis(rs.getInt(7));
		dto.setPorcentajeSeis(rs.getBigDecimal(8));
		return dto;
	}

}
